package com.bys.system.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bys.generator.base.BaseModel;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
* PackageName:  com.bys.system.model
* ClassName:    SysLoginLogModel
* Description:  系统访问记录实体类
* Author:       bys
* Date:         2023-03-31
**/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "sys_login_log", autoResultMap = true)
@Schema(description = "系统访问记录实体类")
public class SysLoginLogModel extends BaseModel {

    private static final long serialVersionUID = 1L;

    @Schema(description = "用户账号")
    @TableField("username")
    private String username;

    @Schema(description = "登录IP地址")
    @TableField("ipaddr")
    private String ipaddr;

    @Schema(description = "登录状态（0成功 1失败）")
    @TableField("`status`")
    private Boolean status;

    @Schema(description = "提示信息")
    @TableField("msg")
    private String msg;

    @Schema(description = "访问时间")
    @TableField("access_time")
    private LocalDateTime accessTime;


}